package cn.school.mybatis.pojo;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student implements Serializable {

	private static final long serialVersionUID = 1L;
	private int stuno;
	@NotBlank(message = "用户名不得为空！")
	private String sname;
	private String sex;
	private String telephone;
	private String qq;
	private String wechat;
	private int gradeid;
	private String enterdate;
	private String fromcity;
	private String birthday;
	private String address;
	private String pass;
	private String idcardpic;

	private String gname;



	public Student(String sname, String sex, String telephone, String qq, String wechat, int gradeid, String enterdate, String fromcity, String birthday, String address, String pass, String idcardpic) {
		this.sname = sname;
		this.sex = sex;
		this.telephone = telephone;
		this.qq = qq;
		this.wechat = wechat;
		this.gradeid = gradeid;
		this.enterdate = enterdate;
		this.fromcity = fromcity;
		this.birthday = birthday;
		this.address = address;
		this.pass = pass;
		this.idcardpic = idcardpic;
	}

	@Override
	public String toString() {
		return "学生信息{" +
				"stuno=" + stuno +
				", sname='" + sname + '\'' +
				", sex='" + sex + '\'' +
				", telephone='" + telephone + '\'' +
				", qq='" + qq + '\'' +
				", wechat='" + wechat + '\'' +
				", gradeid=" + gradeid +
				", enterdate='" + enterdate + '\'' +
				", fromcity='" + fromcity + '\'' +
				", birthday='" + birthday + '\'' +
				", address='" + address + '\'' +
				", pass='" + pass + '\'' +
				", idcardpic='" + idcardpic + '\'' +
				", gname='" + gname + '\'' +
				'}';
	}
}
